﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SG.Domain.Venta>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Ventas
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="TitlePage" runat="server">
    Ventas
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" >
<div style="width:100%; text-align:center">
    <table class="table" style="width:50%">
        <tr>
            <th></th>
            
            <th>
                Número de factura
            </th>
              <th>
                Fecha
            </th>
            <th>
                Cliente
            </th>
          
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>              
                <%: Html.ActionLink("Detalle", "Details", new { id=item.Id })%>
            </td>
           
            <td>
                <%: item.NroFactura.ToString("00000000") %>
            </td>
             <td>
                <%: String.Format("{0:g}", item.Fecha) %>
            </td>
            <td>
                <%: item.Cliente %>
            </td>
           
        </tr>
    
    <% } %>

    </table>
    </div>
</asp:Content>

